﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PreAlertImport.aspx.cs" Inherits="PreAlertImport" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Customer Relation</title>
    <script src="assets/js/jquery-1.4.2.js" type="text/javascript"></script>
    <script type='text/javascript' src="assets/js/jquery-tab.min.js"></script>
    <script type='text/javascript' src="assets/js/jquery.bgiframe.min.js"></script>
    <script type='text/javascript' src="assets/js/jquery.ajaxQueue.js"></script>
    <script type='text/javascript' src="assets/js/thickbox-compressed.js"></script>
    <script type='text/javascript' src="assets/js/jquery.autocomplete.js"></script>
    <script type='text/javascript' src="assets/js/jquery.ui.datepicker.js"></script>
    <script type='text/javascript' src='Assets/jquery/simple_colorpicker.js'></script>
    <script type='text/javascript' src="assets/js/common.js"></script>
    <script type='text/javascript' src="Assets/js/jquery-custom-1.0.0.js?v=0611"></script>
    <script type='text/javascript' src="Assets/js/zoom.js"></script>
    <script type='text/javascript' src="assets/js/booking.js"></script>
    <link rel="stylesheet" type="text/css" href="assets/css/jquery.autocomplete.css" />
    <link rel="stylesheet" type="text/css" href="assets/css/thickbox.css" />
    <link rel="stylesheet" href="assets/css/reset.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/styleexpress.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/invalid.css" type="text/css" media="screen" />
    <link rel="stylesheet" type="text/css" href="assets/css/datepicker.css" />
    <link rel="stylesheet" href="Assets/css/EditTableCell.css" type="text/css" />
    <link rel="stylesheet" href="Assets/css/zoom.css" type="text/css" />
    <script type="text/javascript">
        var nPermissions = '<%=nPermissions %>';
        $(document).ready(function () {
            $('#txtCarrier').focus().autocomplete(carrs);
        });
       

    </script>
    <style type="text/css">
        .thheader
        {
            font-weight: bold;
            vertical-align: middle;
            text-align: center;
            font-size: 11px;
            border: 1px solid #ccc !important;
            line-height: 12px !important;
        }
        .tdboder
        {
            border: none !important;
        }
        .tdboder p
        {
            padding: 1px !important;
            width: 40px;
            border: 1px solid #ccc !important;
            border-bottom: 1px solid #ccc !important;
        }
    </style>
</head>
<body>
    <div id="body-wrapper">
        <div id="header">
            <!--#include virtual="include/Header.ascx"-->
        </div>
        <div id="main-content1">
            <div class="content-box">
                <form id="frmCarrContact" runat="server" autocomplete="off">
                <%if(nPermissions >= 3){ %>
                <div id="addnewbox" style="display: none;">
                    <table class="adminedit" style="width: 100%;">
                        <tr>
                            <th align="center">
                                Shipper
                            </th>
                            <th align="center">
                                Consignee
                            </th>
                            <th>
                                Carrier
                            </th>
                            <th align="center">
                                Notify Party
                            </th>
                            <th align="center">
                                Vol
                            </th>
                            <th align="center">
                                Type of container
                            </th>
                            <th align="center">
                                Temperature
                            </th>
                            <th>
                                Weight
                            </th>
                            <th>
                                Pick up container deport
                            </th>
                            <th>
                                Return equip delivery terminal
                            </th>
                            <th>
                                Freight and Charges
                            </th>
                            <th>
                                Cut off time
                            </th>
                            <th>
                                Booking party
                            </th>
                        </tr>
                        <tr>
                            <td>
                                <asp:TextBox class="cls" ID="txtShipper" runat="server" Width="88px" TabIndex="1"></asp:TextBox>
                            </td>
                            <td>
                                <asp:TextBox class="cls" ID="txtConsignee" runat="server" Width="88px" TabIndex="2"></asp:TextBox>
                            </td>
                            <td>
                                <asp:TextBox class="cls" ID="txtCarrier" runat="server" Width="67px" TabIndex="7"
                                    Style="text-align: right;"></asp:TextBox>
                            </td>
                            <td>
                                <asp:TextBox class="cls" ID="txtNotifyParty" runat="server" Width="92px" TabIndex="3"></asp:TextBox>
                            </td>
                            <td>
                                <asp:TextBox class="cls" ID="txtVol" runat="server" Width="50px" TabIndex="4"></asp:TextBox>
                            </td>
                            <td>
                                <asp:TextBox class="cls" ID="txtContainerType" runat="server" Width="50px" TabIndex="5"
                                    Style="text-align: right;"></asp:TextBox>
                            </td>
                            <td>
                                <asp:TextBox class="cls" ID="txtTemperature" runat="server" Width="50px" TabIndex="6"
                                    Style="text-align: right;"></asp:TextBox>
                            </td>
                            <td>
                                <asp:TextBox class="cls" ID="txtWeight" runat="server" Width="50px" TabIndex="7"
                                    Style="text-align: right;"></asp:TextBox>
                            </td>
                            <td>
                                <asp:TextBox class="cls" ID="txtPickupDeport" runat="server" Width="100px" TabIndex="7"
                                    Style="text-align: right;"></asp:TextBox>
                            </td>
                            <td>
                                <asp:TextBox class="cls" ID="txtReturnDeport" runat="server" Width="100px" TabIndex="7"
                                    Style="text-align: right;"></asp:TextBox>
                            </td>
                            <td>
                                <asp:TextBox class="cls" ID="txtFreightCharges" runat="server" Width="100px" TabIndex="7"
                                    Style="text-align: right;"></asp:TextBox>
                            </td>
                            <td>
                                <asp:TextBox class="cls" ID="txtCutOffTime" runat="server" Width="50px" TabIndex="7"
                                    Style="text-align: right;"></asp:TextBox>
                            </td>
                            <td>
                                <asp:TextBox class="cls" ID="txtbookingParty" Text="BACH VIET SHIPPING CO., LTD AS AGENT ONLY FOR THE CARRIER" runat="server" Width="82px" TabIndex="7"
                                    Style="text-align: right;"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                    <table class="paramlist admintable" width="100%">
                        <tr>
                            <td colspan="2">
                                <asp:Button class="button" ID="btnSave" runat="server" TabIndex="10" Text="Cập nhật"
                                    OnClick="btnSave_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
                <%} %>
                <div class="content-box-header">
                    <h3 style="cursor: s-resize;">
                        BOOKING</h3>
                    <input id="btnAddNew" type="button" style="float: right; margin: 9px 10px;" class="button"
                        value="Add new" />
                    <div class="clear">
                    </div>
                </div>
                <%=strAlphaBet%>
                <fieldset>
                    <asp:Repeater ID="rptData" runat="server">
                        <ItemTemplate>
                            <tr onmouseover="this.style.background='#dbf0c9'" onmouseout="this.style.background='#ffffff'"
                                colloaderid='<%#Eval("ID") %>'>
                                <td align="center" editable="true" code="Shipper">
                                    <%# DataBinder.Eval(Container.DataItem, "Shipper")%>
                                </td>
                                <td editable="true" code="Consignee">
                                    <%# DataBinder.Eval(Container.DataItem, "Consignee")%>
                                </td>
                                <td editable="true" code="NotifyParty">
                                    <%# DataBinder.Eval(Container.DataItem, "NotifyParty")%>
                                </td>
                                <td editable="true" code="Vol">
                                    <%# DataBinder.Eval(Container.DataItem, "Vol") %>
                                </td>
                                <td editable="true" code="ContainerType">
                                    <%# DataBinder.Eval(Container.DataItem, "ContainerType")%>
                                </td>
                                <td editable="true" code="Temperature">
                                    <%# DataBinder.Eval(Container.DataItem, "Temperature")%>
                                </td>
                                <td editable="true" code="GrossWeight">
                                    <%# DataBinder.Eval(Container.DataItem, "GrossWeight")%>
                                </td>
                                <td editable="true" code="PickupDeport">
                                    <%# DataBinder.Eval(Container.DataItem, "PickupDeport")%>
                                </td>
                                <td editable="true" code="ReturnDeport">
                                    <%# DataBinder.Eval(Container.DataItem, "ReturnDeport")%>
                                </td>
                                <td editable="true" code="FreightCharges">
                                    <%# DataBinder.Eval(Container.DataItem, "FreightCharges")%>
                                </td>
                                <td editable="true" code="CutOffTime">
                                    <%# DataBinder.Eval(Container.DataItem, "CutOffTime")%>
                                </td>
                                <td editable="true" code="BookingParty">
                                    <%# DataBinder.Eval(Container.DataItem, "BookingParty")%>
                                </td>
                                <td code="LastUpdate" style="color: #0000ff;">
                                    <%# DataBinder.Eval(Container.DataItem, "LastUpdate")%>
                                </td>
                                <%if (nPermissions >= 3)
                                                  { %>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "Action")%>
                                </td>
                                <%} %>
                            </tr>
                        </ItemTemplate>
                        <HeaderTemplate>
                            <table cellspacing="0" cellpadding="0" width="100%" border="0" class="adminlist"
                                editcellcontent="true">
                                <thead>
                                    <tr style="background: #CCC;">
                                        <th align="center">
                                            Index
                                        </th>
                                        <th align="center">
                                            Shipper
                                        </th>
                                        <th align="center">
                                            Consignee
                                        </th>
                                        <th align="center">
                                            NotifyParty
                                        </th>
                                        <th align="center">
                                            Vol
                                        </th>
                                        <th align="center">
                                            ContainerType
                                        </th>
                                        <th align="center">
                                            Temperature
                                        </th>
                                        <th>
                                            GrossWeight
                                        </th>
                                        <th align="center">
                                            ReturnDeport
                                        </th>
                                        <th align="center">
                                            FreightCharges
                                        </th>
                                        <th align="center">
                                            CutOffTime
                                        </th>
                                        <th align="center">
                                            BookingParty
                                        </th>
                                        <th align="center">
                                            Update
                                        </th>
                                        <%if (nPermissions >= 3)
                                                  { %>
                                        <th align="center" width="75px">
                                            Action
                                        </th>
                                        <%} %>
                                    </tr>
                                </thead>
                        </HeaderTemplate>
                        <FooterTemplate>
                            </TABLE>
                        </FooterTemplate>
                    </asp:Repeater>
                </fieldset>
                <div class="clear">
                </div>
                <div id="footer">
                    <%=strPager%>
                </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>

